package routers

import (
	"github.com/gin-gonic/gin"
	"shop-admin/controller"
)

func privateStoreProduct(router *gin.RouterGroup) {
	api := &controller.StoreProductController{}
	product := router.Group("/admin/store/product")
	{
		product.GET("/page", api.Page)
		product.GET("/info/:id", api.Info)
		product.POST("", api.Save)
		product.PUT("", api.Update)
		product.DELETE("", api.Delete)

		product.GET("/generateAttr/:id/:type", api.IsFormatAttr)
	}
}
